Beispiel #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));
 }
 public ExecutionContext([NotNull] Realm realm, [CanBeNull] object scriptOrModule, bool strict)
 {
     Realm          = realm;
     ScriptOrModule = scriptOrModule;
     Strict         = strict;
 }