apache / couchdb

Seamless multi-master syncing database with an intuitive HTTP/JSON API, designed for reliability
https://couchdb.apache.org/
Apache License 2.0
6.28k stars 1.03k forks source link

Handle another expected error in the scanner #5311

Closed nickva closed 1 month ago

nickva commented 1 month ago

It's the same idea as SyntaxError and TypeError above.

While at it improve the filter test to use individual ddocs for each error. This way one error or crash won't influence the others.

nickva commented 1 month ago

This is basically just undefined variables:

% qjs
QuickJS - Type "\h" for help
qjs > x = y;
ReferenceError: 'y' is not defined
    at <eval> (<evalScript>)
qjs >
% js
js> x = y;
typein:1: ReferenceError: y is not defined
% js91
js> x = y;
typein:1:1 ReferenceError: y is not defined
Stack:
  @typein:1:1