Skip to content

A possible issue with CC not throwing syntax exceptions correctly #6553

@ty5491003

Description

@ty5491003
Chakra Version

Latest Commit 9e2f198 (Release Version)

Test case
if (1)
Execution steps
./ChakraCore/out/Release/ch testcase.js
Expected behavior
SyntaxError: Unexpected end of script
Actual behavior
(No exception was thrown)
Description

Obviously this is a syntax error, however CC does not throw any exceptions. I've tried other engines, and they all throw SyntaxError, So i suspect it's a bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions