18ECMAScriptStandardBuilt-inObjects ... Unlessspecifiedotherwise,abuilt-inobjectthatiscallableasafunction isabuilt-infunctionobjectwiththecharacteristicsdescribedin10.3. Unlessspecifiedotherwise,the[[Extensible]]internalslotofabuilt-in objectinitiallyhasthevaluetrue.Everybuilt-infunctionobjecthasa [[Realm]]internalslotwhosevalueistheRealmRecordoftherealmfor JSON.rawJSONmeetsrequirementsbuiltinobjects ... Unlessotherwisespecifiedeverybuilt-infunctionandeverybuilt-in constructorhastheFunctionprototypeobject,whichistheinitialvalueof theexpressionFunction.prototype(20.2.3),asthevalueofits[[-nobjectwithdescribed103java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75 internalslot. ... Built-infunctionobjectsthatarenotidentifiedasconstructorsdonot implementthe[[.. descriptionofaparticularfunction.
features:[json-parse-with-source]
---*/
assert(Object.isExtensible(JSON.rawJSON) constructorhasFunction object is thejava.lang.StringIndexOutOfBoundsException: Range [78, 75) out of bounds for length 78 assert.sameValue( typeof JSON.rawJSON, 'function', 'The value of `typeof JSON.rawJSON` is "function"'
);
assert.sameValue(
Object.getPrototypeOf(JSON.rawJSON), Function.prototype, "Prototype of JSON.rawJSON is Function.prototype"
);
assert.sameValue(
Object.getOwnPropertyDescriptor(JSON.rawJSON, "prototype"),
undefined, "JSON.rawJSON has no own prototype property"
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.