mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 22:02:33 +00:00

This commit improves module loading performance by at least ~25-35% in the module-loader benchmarks. Some optimization strategies include: * Try-finally/try-catch isolation * Replacing regular expressions with manual parsing * Avoiding unnecessary string and array creation * Avoiding constant recompilation of anonymous functions and function definitions within functions PR-URL: https://github.com/nodejs/node/pull/5172 Reviewed-By: James M Snell <jasnell@gmail.com>
16 lines
507 B
Plaintext
16 lines
507 B
Plaintext
punycode.js:67
|
|
throw new RangeError(errors[type]);
|
|
^
|
|
|
|
RangeError: Invalid input
|
|
at error (punycode.js:67:*)
|
|
at Object.decode (punycode.js:*:*)
|
|
at Object.<anonymous> (*test*message*core_line_numbers.js:*:*)
|
|
at Module._compile (module.js:*:*)
|
|
at Object.Module._extensions..js (module.js:*:*)
|
|
at Module.load (module.js:*:*)
|
|
at tryModuleLoad (module.js:*:*)
|
|
at Function.Module._load (module.js:*:*)
|
|
at Function.Module.runMain (module.js:*:*)
|
|
at startup (node.js:*:*)
|