fix this refer to undefined incase all this's props be proxy
This commit is contained in:
parent
680b95f05d
commit
a6419e0fdf
2
doric-web/dist/index.js
vendored
2
doric-web/dist/index.js
vendored
@ -4818,7 +4818,7 @@ return __module.exports;},this,[{exports:{}}])])`;
|
|||||||
return `//@ sourceURL=contextId_${contextId}.js
|
return `//@ sourceURL=contextId_${contextId}.js
|
||||||
Reflect.apply(function(doric,context,Entry,require,exports,setTimeout,setInterval,clearTimeout,clearInterval){
|
Reflect.apply(function(doric,context,Entry,require,exports,setTimeout,setInterval,clearTimeout,clearInterval){
|
||||||
${content}
|
${content}
|
||||||
},doric.jsObtainContext("${contextId}"),[undefined,doric.jsObtainContext("${contextId}"),doric.jsObtainEntry("${contextId}"),doric.__require__,{},doricSetTimeout,doricSetInterval,doricClearTimeout,doricClearInterval])`;
|
},undefined,[undefined,doric.jsObtainContext("${contextId}"),doric.jsObtainEntry("${contextId}"),doric.__require__,{},doricSetTimeout,doricSetInterval,doricClearTimeout,doricClearInterval])`;
|
||||||
}
|
}
|
||||||
function initDoric() {
|
function initDoric() {
|
||||||
injectGlobalObject("Environment", {
|
injectGlobalObject("Environment", {
|
||||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "doric-web",
|
"name": "doric-web",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"description": "Doric library for Web",
|
"description": "Doric library for Web",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -36,7 +36,7 @@ function packageCreateContext(contextId: string, content: string) {
|
|||||||
return `//@ sourceURL=contextId_${contextId}.js
|
return `//@ sourceURL=contextId_${contextId}.js
|
||||||
Reflect.apply(function(doric,context,Entry,require,exports,setTimeout,setInterval,clearTimeout,clearInterval){
|
Reflect.apply(function(doric,context,Entry,require,exports,setTimeout,setInterval,clearTimeout,clearInterval){
|
||||||
${content}
|
${content}
|
||||||
},doric.jsObtainContext("${contextId}"),[undefined,doric.jsObtainContext("${contextId}"),doric.jsObtainEntry("${contextId}"),doric.__require__,{},doricSetTimeout,doricSetInterval,doricClearTimeout,doricClearInterval])`
|
},undefined,[undefined,doric.jsObtainContext("${contextId}"),doric.jsObtainEntry("${contextId}"),doric.__require__,{},doricSetTimeout,doricSetInterval,doricClearTimeout,doricClearInterval])`
|
||||||
}
|
}
|
||||||
|
|
||||||
function initDoric() {
|
function initDoric() {
|
||||||
|
Reference in New Issue
Block a user