lilact 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lilact.development.js +1 -1
- package/dist/lilact.development.js.map +1 -1
- package/dist/lilact.development.min.js +1 -1
- package/dist/lilact.development.min.js.map +1 -1
- package/dist/lilact.production.min.js +1 -1
- package/dist/lilact.production.min.js.map +1 -1
- package/docs/static/demos/error-callback.jsx +2 -23
- package/docs/static/lilact.development.js +1 -1
- package/docs/static/lilact.development.min.js +1 -1
- package/docs/static/lilact.production.min.js +1 -1
- package/package.json +1 -1
- package/root/demos/error-callback.jsx +2 -23
- package/root/lilact.development.js +1 -1
- package/root/lilact.development.min.js +1 -1
- package/root/lilact.production.min.js +1 -1
- package/src/run.jsx +1 -1
|
@@ -1,29 +1,8 @@
|
|
|
1
1
|
module.exports = function() {
|
|
2
2
|
|
|
3
3
|
return <center>
|
|
4
|
-
<button onClick={()=>{doUnknown()}}>
|
|
5
|
-
Press to get Error with Curly Brackets!
|
|
6
|
-
</button>
|
|
7
|
-
<br/><br/>
|
|
8
4
|
<button onClick={()=>doUnknown()}>
|
|
9
|
-
Press to get Error
|
|
5
|
+
Press to get Error!
|
|
10
6
|
</button>
|
|
11
|
-
|
|
12
|
-
<p>The first button's onClick arrow handler body is wrapped in curly brackets. <br/><br/>
|
|
13
|
-
|
|
14
|
-
{"<button onClick={()=>{doUnknown()}}>"}<br/><br/>
|
|
15
|
-
|
|
16
|
-
JS runtimes currently lack a consistent reporting mechanism for errors produced in eval,
|
|
17
|
-
and as Lilact runs the transpiled JSX in eval, tracing errors has its own difficulties.
|
|
18
|
-
<br/><br/>
|
|
19
|
-
At the moment things work pretty nice and errors are tracked to the JSX scripts in
|
|
20
|
-
{" "}<b>Firefox</b>{" "}and{" "}<b>Chrome</b>{" "}, but{" "}<b>Safari</b>{" "}
|
|
21
|
-
has problems sometimes, as it drops the eval frame data on async or deferred calls.
|
|
22
|
-
<br/><br/>
|
|
23
|
-
Lilact has a tracking mechanism to overcome this, but for the sake of efficiency,
|
|
24
|
-
it is block-based and only locates the code that is in {" {} "} blocks. As a result, the callbacks
|
|
25
|
-
should be wrapped in a {" {} "} to be tracable in Safari. If not, it works,
|
|
26
|
-
but it is not possible to display the exact location of some errors in Safari.</p>
|
|
27
|
-
</center>
|
|
28
|
-
|
|
7
|
+
</center>
|
|
29
8
|
}
|
|
@@ -10249,7 +10249,7 @@ function run(jsx, path=`InlineJSX-${++_lilact_jsx__WEBPACK_IMPORTED_MODULE_0__["
|
|
|
10249
10249
|
appendSourcemap: false,
|
|
10250
10250
|
blocks_info: _lilact_jsx__WEBPACK_IMPORTED_MODULE_0__["default"].blocks_info,
|
|
10251
10251
|
|
|
10252
|
-
injectTraceLabels:
|
|
10252
|
+
injectTraceLabels: false,
|
|
10253
10253
|
} );
|
|
10254
10254
|
}
|
|
10255
10255
|
catch(e) {
|