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
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
When running protractor with angular2 Dependency injection and therefore using zone.js I get the following error:
Error: TypeError: Cannot set property 'message' of undefined
at ZoneAwareError (project\node_modules\zone.js\dist\zone-node.js:683:22)
at captureStackTrace (project\node_modules\selenium-webdriver\lib\promise.js:691:11)
at new Task (project\node_modules\selenium-webdriver\lib\promise.js:2662:29)
at ControlFlow.execute (project\node_modules\selenium-webdriver\lib\promise.js:2246:16)
at Function.createSession (project\node_modules\selenium-webdriver\lib\webdriver.js:329:24)
at Builder.build (project\node_modules\selenium-webdriver\builder.js:458:24)
at Local.DriverProvider.getNewDriver (project\node_modules\protractor\built\driverProviders\driverProvider.js:37:33)
at Runner.createBrowser (project\node_modules\protractor\built\runner.js:197:43)
at project\node_modules\protractor\built\runner.js:276:30
at _fulfilled (project\node_modules\q\q.js:834:54)
at self.promiseDispatch.done (project\node_modules\q\q.js:863:30)
at Promise.promise.promiseDispatch (project\node_modules\q\q.js:796:13)
at project\node_modules\q\q.js:604:44
at runSingle (project\node_modules\q\q.js:137:13)
at flush (project\node_modules\q\q.js:125:13)
When running protractor with angular2 Dependency injection and therefore using zone.js I get the following error:
The line producing errors in zone.js:
zone.js/lib/zone.ts
Line 1320 in 610649b
Example of a place where Error is called without new: https://github.com/SeleniumHQ/selenium/blob/ba56ad1ae0b98a1fe1efdd2163c62fc847950178/javascript/node/selenium-webdriver/lib/promise.js#L714
We can agree that it would be best practice to use new, but I think zone.js if it forces wrapping the Error class should work the same way.