mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
implement direct and indirect eval
This commit is contained in:
parent
e6b237c525
commit
ec8421be8f
12 changed files with 171 additions and 101 deletions
|
@ -1,8 +1,7 @@
|
|||
import { encodeUrl } from "../shared";
|
||||
import { importfn } from "../";
|
||||
import { config, encodeUrl } from "../shared";
|
||||
|
||||
export default function (client, self) {
|
||||
self[importfn] = function (base) {
|
||||
self[config.importfn] = function (base) {
|
||||
return function (url) {
|
||||
const resolved = new URL(url, base).href;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue