GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/test/es-module/test-esm-import-meta.mjs at master · ferventcoder/node Expand file tree/ Copy pathtest-esm-import-meta.mjsMore file actions 22 lines (17 loc) · 639 Bytes / Copy pathtest-esm-import-meta.mjsFile metadata and controls22 lines (17 loc) · 639 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 // Flags: --experimental-modules import '../common'; import assert from 'assert'; assert.strictEqual(Object.getPrototypeOf(import.meta), null); const keys = ['url']; assert.deepStrictEqual(Reflect.ownKeys(import.meta), keys); const descriptors = Object.getOwnPropertyDescriptors(import.meta); for (const descriptor of Object.values(descriptors)) { delete descriptor.value; // Values are verified below. assert.deepStrictEqual(descriptor, { enumerable: true, writable: true, configurable: true }); } const urlReg = /^file:\/\/\/.*\/test\/es-module\/test-esm-import-meta\.mjs$/; assert(import.meta.url.match(urlReg)); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |