Skip to content

Commit

Permalink
[js] Remove a no longer needed hack
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Sep 7, 2019
1 parent a759b02 commit 1a6d4e4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/vm/js/nqp-runtime/runtime.js
Expand Up @@ -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, '_');
Expand All @@ -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 {
Expand Down

0 comments on commit 1a6d4e4

Please sign in to comment.