Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"type": "module",
"scripts": {
"build": "deno build.ts --tagName 1.65.1b0 > ubo.js",
"build": "deno build.ts --tagName 1.65.1b2 > ubo.js",
"test": "node --test"
},
"author": {
Expand Down
7 changes: 4 additions & 3 deletions ubo.js
Original file line number Diff line number Diff line change
Expand Up @@ -24912,7 +24912,7 @@ function getExceptionTokenFn() {
}.bind();
return token;
}
function abortCurrentScriptCore(
function abortCurrentScriptFn(
target = '',
needle = '',
context = ''
Expand Down Expand Up @@ -24947,8 +24947,9 @@ function abortCurrentScriptCore(
const debug = shouldDebug(extraArgs);
const exceptionToken = getExceptionTokenFn();
const scriptTexts = new WeakMap();
const textContentGetter = Object.getOwnPropertyDescriptor(Node.prototype, 'textContent').get;
const getScriptText = elem => {
let text = elem.textContent;
let text = textContentGetter.call(elem);
if ( text.trim() !== '' ) { return text; }
if ( scriptTexts.has(elem) ) { return scriptTexts.get(elem); }
const [ , mime, content ] =
Expand Down Expand Up @@ -25019,7 +25020,7 @@ function abortCurrentScriptCore(
}
function abortCurrentScript(...args) {
runAtHtmlElementFn(( ) => {
abortCurrentScriptCore(...args);
abortCurrentScriptFn(...args);
});
};
abortCurrentScript(...args);
Expand Down