- https://github.com/mozilla/gecko-dev/blob/8bcc214714bd4e1ceea7c2d921abdad0eefe7df9/js/src/builtin/Object.cpp#L418
- https://github.com/mozilla/gecko-dev/blob/8bcc214714bd4e1ceea7c2d921abdad0eefe7df9/js/src/builtin/Object.cpp#L424
- https://github.com/mozilla/gecko-dev/blob/8bcc214714bd4e1ceea7c2d921abdad0eefe7df9/js/src/builtin/Object.cpp#L430
- https://github.com/mozilla/gecko-dev/blob/8bcc214714bd4e1ceea7c2d921abdad0eefe7df9/js/src/builtin/Object.cpp#L466
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestPreExec { | |
@Test | |
public void testPre() { | |
Context context = Context.enter(); | |
try { | |
ScriptableObject scope = context.initStandardObjects(); | |
URI uri = URI.create(TestPreExec.class.getResource(".") | |
.toExternalForm()); | |
Iterable<URI> privilegedUris = singletonList(uri); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.mozilla.javascript.tests; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import org.junit.After; | |
import org.junit.Before; |
When the getOwnPropertyDescriptors function is called, the following steps are taken:
- Let obj be ToObject(O).
- ReturnIfAbrupt(obj).
- Let keys be the result of calling the [[OwnPropertyKeys]] internal method of obj.
- ReturnIfAbrupt(keys).
- Let descriptors be the result of ObjectCreate(null).
- Let gotAllNames be false.