// |reftest| shell-option(--enable-json-parse-with-source) skip-if(!JSON.hasOwnProperty('isRawJSON')||!xulRuntime.shell) -- json-parse-with-source is not enabled unconditionally, requires shell-options // Copyright (C) 2024 Igalia S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file.
assert(Object.isExtensible(JSON.rawJSON), "JSON.rawJSON is extensible"); 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.