feat:use log to hint
This commit is contained in:
parent
43cec0aee9
commit
3d2722cb3a
@ -4410,13 +4410,27 @@ global$1.nativeLog = (type, msg) => {
|
||||
}
|
||||
};
|
||||
global$1.nativeRequire = () => {
|
||||
console.error("Do not call nativeRequire here");
|
||||
console.error("nativeRequire", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return false;
|
||||
};
|
||||
global$1.nativeBridge = () => {
|
||||
console.error("Do not call nativeBridge here");
|
||||
console.error("nativeBridge", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return false;
|
||||
};
|
||||
global$1.Envrionment = new Proxy({}, {
|
||||
get: (target, p, receiver) => {
|
||||
console.error("Environment Getter", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return undefined;
|
||||
},
|
||||
set: (target, p, v, receiver) => {
|
||||
console.error("Environment Setter", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return Reflect.set(target, p, v, receiver);
|
||||
}
|
||||
});
|
||||
|
||||
exports.AnimationSet = AnimationSet;
|
||||
exports.BOTTOM = BOTTOM;
|
||||
|
@ -196,22 +196,26 @@ global.nativeLog = (type: string, msg: string) => {
|
||||
}
|
||||
|
||||
global.nativeRequire = () => {
|
||||
console.error("In debugger,do not support call nativeRequire here", new Error().stack);
|
||||
console.error("nativeRequire", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return false;
|
||||
}
|
||||
|
||||
global.nativeBridge = () => {
|
||||
console.error("In debugger,do not support call nativeBridge here", new Error().stack);
|
||||
console.error("nativeBridge", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return false;
|
||||
}
|
||||
|
||||
global.Envrionment = new Proxy({}, {
|
||||
get: (target, p, receiver) => {
|
||||
console.error("In debugger,do not support get Environment's value here", new Error().stack)
|
||||
console.error("Environment Getter", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return undefined
|
||||
},
|
||||
set: (target, p, v, receiver) => {
|
||||
console.error("In debugger,do not support set Environment's value here", new Error().stack)
|
||||
console.error("Environment Setter", new Error().stack)
|
||||
console.error("Do not call here in debugging");
|
||||
return Reflect.set(target, p, v, receiver);
|
||||
}
|
||||
})
|
||||
|
@ -202,11 +202,25 @@ global.nativeLog = (type, msg) => {
|
||||
}
|
||||
};
|
||||
global.nativeRequire = () => {
|
||||
console.error("Do not call nativeRequire here");
|
||||
console.error("nativeRequire", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return false;
|
||||
};
|
||||
global.nativeBridge = () => {
|
||||
console.error("Do not call nativeBridge here");
|
||||
console.error("nativeBridge", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return false;
|
||||
};
|
||||
global.Envrionment = new Proxy({}, {
|
||||
get: (target, p, receiver) => {
|
||||
console.error("Environment Getter", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return undefined;
|
||||
},
|
||||
set: (target, p, v, receiver) => {
|
||||
console.error("Environment Setter", new Error().stack);
|
||||
console.error("Do not call here in debugging");
|
||||
return Reflect.set(target, p, v, receiver);
|
||||
}
|
||||
});
|
||||
export * from './index';
|
||||
|
Reference in New Issue
Block a user