This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258830

Summary: False undeclared global variable hint
Product: javascript Reporter: Petr Hejl <phejl>
Component: EditorAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 242387    

Description Petr Hejl 2016-04-14 14:42:15 UTC
import {x as y} from 'dd';

There is hint on undeclared y.
Comment 1 everflux 2016-04-29 10:59:37 UTC
The same happens for lambdas:

var odds = evens.map(v => v + 1);

Hint on 'v': "The global variable 'v' is not declared"
Comment 2 Petr Hejl 2016-05-30 13:03:22 UTC
(In reply to everflux from comment #1)
> The same happens for lambdas:
> 
> var odds = evens.map(v => v + 1);
> 
> Hint on 'v': "The global variable 'v' is not declared"

This one already works on ecma6 (not yet available).
Comment 3 Petr Pisl 2016-06-03 07:58:01 UTC
Fixed on the branch.