File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -264,8 +264,12 @@ class HLL::Compiler does HLL::Backend::Default {
264
264
265
265
my $ * LIBPATH ;
266
266
if % adverbs <libpath > {
267
- $ * LIBPATH := nqp :: split (' |||' , % adverbs <libpath >);
268
- nqp ::getcomp(' JavaScript' ). eval(' (function(paths) {nqp.libpath(paths.array)})' )($ * LIBPATH );
267
+ my $ split := nqp :: split (' |||' , % adverbs <libpath >);
268
+ $ * LIBPATH := nqp ::list_s();
269
+ for $ split -> $ str {
270
+ nqp ::push_s($ * LIBPATH , $ str );
271
+ }
272
+ nqp ::getcomp(' JavaScript' ). eval(' return (function(paths) {nqp.libpath(paths)})' )($ * LIBPATH );
269
273
}
270
274
271
275
my $ * EXECNAME ;
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ class JavaScriptBackend {
277
277
nqp :: unlink ($ tmp_file );
278
278
}
279
279
} else {
280
- my $ sourcemap := nqp ::getcomp(' JavaScript' ). eval(' nqp.buildSourceMap' )(
280
+ my $ sourcemap := nqp ::getcomp(' JavaScript' ). eval(' return nqp.buildSourceMap' )(
281
281
$ sourcemap_and_js . js,
282
282
$ sourcemap_and_js . p6-source,
283
283
$ sourcemap_and_js . mapping,
You can’t perform that action at this time.
0 commit comments