Bug 562757 - Exponentiation Operator does not parse properly
Summary: Exponentiation Operator does not parse properly
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.15   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-03 20:11 EDT by Mark Murphy CLA
Modified: 2020-05-03 20:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Murphy CLA 2020-05-03 20:11:25 EDT
Exponentiation operator (**) causes 'Primary expression expected' and 'Semi-colon expected'. Sometimes other parse errors involving missing } or ) appear. Using Math.pow() in the same statement parses correctly.

Here is a sample that causes parse errors;

var testvalue = 1 ** 2;

WDT 3.15.0.v201908192247
JSDT 2.1.3.v201908270117