aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/string-escapes.hmr.js
blob: bebb3792349318f66598fb7a13cb0c77b75871f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import {
__HMRModule as HMR
} from "http://localhost:8080/__runtime.js";
import {
__HMRClient as Bun
} from "http://localhost:8080/__runtime.js";
Bun.activate(false);

var hmr = new HMR(2657253006, "string-escapes.js"), exports = hmr.exports;
(hmr._load = function() {
  var tab = "\t";
  var シ = "wow";
  var f = "";
  var obj = {
    "\r\n": "\r\n",
    "\n": "\n",
    "\t": "\t",
    "\u2028": "\u2028",
    "\u2029": "\u2029",
    "😊": "😊",
    "😃": "😃",
    "㋡": "㋡",
    "☺": "☺",
    シ: "シ",
    f,
    "☹": "☹",
    "☻": "☻",
    children: 123
  };
  const foo = () => {
  };
  const Bar = foo("a", {
    children: 123
  });
  const carriage = obj["\r\n"];
  const newline = obj["\n"];
  function test() {
    console.assert(carriage === "\r\n");
    console.assert(newline === "\n");
    console.assert(tab === "\t");
    return testDone(import.meta.url);
  }
  hmr.exportAll({
    obj: () => obj,
    test: () => test
  });
})();
var $$hmr_obj = hmr.exports.obj, $$hmr_test = hmr.exports.test;
hmr._update = function(exports) {
  $$hmr_obj = exports.obj;
  $$hmr_test = exports.test;
};

export {
  $$hmr_obj as obj,
  $$hmr_test as test
};