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.
Created attachment 161793 [details] Example project Run the attached application in the embedded browser. In index.html there is a data-binding with logic <p data-bind="visible: userName()=='Admin'">You are an admin.</p> When you run this application (see attachment) NB will shutdown without any log entry. It has to do something with the embedded browser. Other browsers work. Happens in 8.1 and Dev
It works, when the name matches exactly the variable name. userName vs username A simple typo should not crash the embedded browser/NB. Working: <p data-bind="visible: username()=='Admin'">You are an admin.</p> ... define(['knockout'], function (ko) { return function THISWASMISSING(defaultValue) { this.username = ko.observable(defaultValue); this.greeting = ko.pureComputed(function () { return 'Hello' + this.username().toUpperCase(); }, this); this.isAdmin = ko.pureComputed(function () { return this.username() === "Admin"; }, this); }; }); Non working (crashing): <p data-bind="visible: userName()=='Admin'">You are an admin.</p> ... define(['knockout'], function (ko) { return function THISWASMISSING(defaultValue) { this.username = ko.observable(defaultValue); this.greeting = ko.pureComputed(function () { return 'Hello' + this.username().toUpperCase(); }, this); this.isAdmin = ko.pureComputed(function () { return this.username() === "Admin"; }, this); }; });