Skip to content

Commit 544c08a

Browse files
committed
Change loop protection for compat with jsonata-js/jsonata#700
1 parent 9a5839c commit 544c08a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exerciser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ class Exerciser extends React.Component {
432432
};
433433

434434
// register callbacks
435-
expr.assign('__evaluate_entry', function (expr, input, environment) {
435+
expr.assign(Symbol.for('jsonata.__evaluate_entry'), function (expr, input, environment) {
436436
depth++;
437437
checkRunnaway();
438438
});
439-
expr.assign('__evaluate_exit', function (expr, input, environment, result) {
439+
expr.assign(Symbol.for('jsonata.__evaluate_exit'), function (expr, input, environment, result) {
440440
depth--;
441441
checkRunnaway();
442442
});

0 commit comments

Comments
 (0)