Esempio n. 1
0
 internal static ScriptFunctionObject CreateBuiltinFunction([NotNull] Realm realm, [NotNull] Func <ScriptArguments, ScriptValue> callback, [CanBeNull] ScriptObject prototype)
 {
     //https://tc39.github.io/ecma262/#sec-createbuiltinfunction
     return(new ScriptFunctionObject(realm, prototype, true, callback));
 }
Esempio n. 2
0
 public ExecutionContext([NotNull] Realm realm, [CanBeNull] object scriptOrModule, bool strict)
 {
     Realm          = realm;
     ScriptOrModule = scriptOrModule;
     Strict         = strict;
 }