2898747db4
This change implements intrinsic function support in the runtime. The basic idea is to swap out references to MuIL functions with runtime-implemented functionality, for operations that cannot be expressed in the MuIL-subset. For example, this change includes two such cases: 1) a mu.runtime.isFunction(obj) function to check if the target object is a function; and 2) a mu.runtime.dynamicInvoke(obj,obj,obj[]) function to dynamically invoke a target object. These will be used most immediately to implement ECMAScript toString functionality in the MuJS runtime library, however it will also come in handy shortly to implement things like printf (marapongo/mu#86), string and array functions (marapongo/mu#80), and, eventually, the ECMAScript-specific operators and behavior (marapongo/mu#61). |
||
---|---|---|
.. | ||
runtime | ||
.gitignore | ||
context.ts | ||
index.ts | ||
install.sh | ||
Mu.yaml | ||
package.json | ||
resource.ts | ||
stack.ts | ||
tsconfig.json | ||
yarn.lock |