summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/namespace/internals/get-sym-found.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/tests/test262/language/module-code/namespace/internals/get-sym-found.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/module-code/namespace/internals/get-sym-found.js b/js/src/tests/test262/language/module-code/namespace/internals/get-sym-found.js
new file mode 100644
index 0000000000..628d053b1a
--- /dev/null
+++ b/js/src/tests/test262/language/module-code/namespace/internals/get-sym-found.js
@@ -0,0 +1,21 @@
+// |reftest| module
+// Copyright (C) 2016 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+esid: sec-module-namespace-exotic-objects-get-p-receiver
+description: >
+ Behavior of the [[Get]] internal method with a symbol argument that can be
+ found
+info: |
+ [...]
+ 2. If Type(P) is Symbol, then
+ a. Return ? OrdinaryGet(O, P, Receiver).
+flags: [module]
+features: [Symbol.toStringTag]
+---*/
+
+import * as ns from './get-sym-found.js';
+
+assert.sameValue(typeof ns[Symbol.toStringTag], 'string');
+
+reportCompare(0, 0);