aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/latin1-chars-in-regexp.hmr.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-02-22 15:47:11 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-02-22 15:47:11 -0800
commitdfa3e19cbf1a4fefcad424b7a5a50569ce3d6864 (patch)
tree094f1617823b84956710a1a8c8a8d055e17f9a3d /integration/snapshots/latin1-chars-in-regexp.hmr.js
parentfbac824975d425dde279cd4b618aceb49c889d0d (diff)
downloadbun-dfa3e19cbf1a4fefcad424b7a5a50569ce3d6864.tar.gz
bun-dfa3e19cbf1a4fefcad424b7a5a50569ce3d6864.tar.zst
bun-dfa3e19cbf1a4fefcad424b7a5a50569ce3d6864.zip
snaspshots
Diffstat (limited to 'integration/snapshots/latin1-chars-in-regexp.hmr.js')
-rw-r--r--integration/snapshots/latin1-chars-in-regexp.hmr.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/integration/snapshots/latin1-chars-in-regexp.hmr.js b/integration/snapshots/latin1-chars-in-regexp.hmr.js
index f92b8f153..3f7d8284e 100644
--- a/integration/snapshots/latin1-chars-in-regexp.hmr.js
+++ b/integration/snapshots/latin1-chars-in-regexp.hmr.js
@@ -12,7 +12,6 @@ Bun.activate(false);
var hmr = new FastHMR(1430071586, "latin1-chars-in-regexp.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
- var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
var re_btou = new RegExp([
"[\xC0-\xDF][\x80-\xBF]",
"[\xE0-\xEF][\x80-\xBF]{2}",
@@ -70,24 +69,30 @@ var hmr = new FastHMR(1430071586, "latin1-chars-in-regexp.js", FastRefresh), exp
function test() {
if (!real.every((point, i) => point.every((val, j) => val === expected[i][j])))
throw new Error(`test failed
-${JSON.stringify({expected, real }, null, 2)}`);
+${JSON.stringify({ expected, real }, null, 2)}`);
if (newlinePreserved.length !== 1 || newlinePreserved.charCodeAt(0) !== 10)
throw new Error("Newline was not preserved");
const decoder = new TextDecoder("utf8");
if (!realLines.every((line, i) => decoder.decode(Uint8Array.from(expected[i])) === line))
throw new Error(`test failed. Lines did not match.
-${JSON.stringify({expected, real }, null, 2)}`);
+${JSON.stringify({ expected, real }, null, 2)}`);
testDone(import.meta.url);
}
hmr.exportAll({
+ re_utob: () => re_utob,
+ re_btou: () => re_btou,
test: () => test
});
})();
-var $$hmr_test = hmr.exports.test;
+var $$hmr_re_utob = hmr.exports.re_utob, $$hmr_re_btou = hmr.exports.re_btou, $$hmr_test = hmr.exports.test;
hmr._update = function(exports) {
+ $$hmr_re_utob = exports.re_utob;
+ $$hmr_re_btou = exports.re_btou;
$$hmr_test = exports.test;
};
export {
+ $$hmr_re_utob as re_utob,
+ $$hmr_re_btou as re_btou,
$$hmr_test as test
};