From 1a6d4e4665ac43644fb8a8ca7a9a5910357ac480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Murias?= Date: Sat, 7 Sep 2019 15:09:28 +0200 Subject: [PATCH] [js] Remove a no longer needed hack --- src/vm/js/nqp-runtime/runtime.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/vm/js/nqp-runtime/runtime.js b/src/vm/js/nqp-runtime/runtime.js index 972ee4545e..ed469fcd56 100644 --- a/src/vm/js/nqp-runtime/runtime.js +++ b/src/vm/js/nqp-runtime/runtime.js @@ -156,10 +156,6 @@ function loadWithCache(code) { if (process.browser) { op.loadbytecode = /*async*/ function(ctx, file) { - if (file == 'Perl6/BOOTSTRAP.js') { - file = 'Perl6::BOOTSTRAP'; - } - const oldLoaderCtx = exports.loaderCtx; exports.loaderCtx = ctx; file = file.replace(/\./g, '_'); @@ -174,11 +170,6 @@ if (process.browser) { }; } else { op.loadbytecode = /*async*/ function(ctx, file) { - // HACK - temporary hack for rakudo-js - if (file == 'Perl6/BOOTSTRAP.js') { - file = 'Perl6::BOOTSTRAP'; - } - let loadFrom; if (ctx && ((loadFrom = ctx.lookupDynamic('$*LOADBYTECODE_FROM')) !== Null)) { } else {