You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('will not parse invalid scientific notation', function () {
expect(function () {
parse('42e');
}).toThrow();
});
The test above fails wherares the angular $parser works properly with this and throws an exception. The сulprit is Lexer.prototype.isNumber method which returns true for booleans passed as an argument (in this case 'false').
The text was updated successfully, but these errors were encountered:
ghost
changed the title
$parse operator fails with not valid exponent value
$parse method not throws exception for ivvalid exponent value
Aug 20, 2016
ghost
changed the title
$parse method not throws exception for ivvalid exponent value
$parse method not throws an exception for invalid exponent value
Aug 20, 2016
The test above fails wherares the angular $parser works properly with this and throws an exception. The сulprit is Lexer.prototype.isNumber method which returns true for booleans passed as an argument (in this case 'false').
The text was updated successfully, but these errors were encountered: