Adding getSource native function
This commit is contained in:
parent
767416e30a
commit
0deb8f6307
2 changed files with 8 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ function sanitize(name: string): string {
|
|||
|
||||
if (ops[name]) return ops[name];
|
||||
|
||||
const natives = ['measure', 'measureText', 'storeSearch', 'debug', 'len', 'slice', 'str', 'redefine'];
|
||||
const natives = ['measure', 'measureText', 'storeSearch', 'getSource', 'debug', 'len', 'slice', 'str', 'redefine'];
|
||||
if (natives.includes(name)) return `_rt.${name}`;
|
||||
|
||||
const reserved = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue