This file contains hidden or 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
| # FORMAT NOT DOCUMENTED YET (parser is urltestparser.js) | |
| # Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/segments.js | |
| http://example\t.\norg http://example.org/foo/bar s:http h:example.org p:/ | |
| http://user:pass@foo:21/bar;par?b#c s:http u:user pass:pass h:foo port:21 p:/bar;par q:?b f:#c | |
| http:foo.com s:http h:example.org p:/foo/foo.com | |
| \t\s\s\s:foo.com\s\s\s\n s:http h:example.org p:/foo/:foo.com | |
| \sfoo.com\s\s s:http h:example.org p:/foo/foo.com | |
| a:\t\sfoo.com s:a p:\sfoo.com | |
| http://f:21/\sb\s?\sd\s#\se\s s:http h:f port:21 p:/%20b%20 q:?%20d%20 f:#\se |
This file contains hidden or 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
| "use strict"; | |
| const conversions = require("webidl-conversions"); | |
| const Impl = require("../implementation/EventTarget.js"); | |
| const initialized = require("./utils.js").initialized; | |
| class EventTarget { | |
| constructor() { | |
| if (arguments[0] !== module.exports.secret && !this[initialized]) { |
This file contains hidden or 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
| const hooks = async_hooks.create() | |
| setTimeout(() => { // some async task | |
| setImmediate(() => { // another one | |
| throw new Error(); // woops! | |
| }) | |
| }, 1000) | |
| /* | |
| With hooks: |
OlderNewer