Bug 158944 - Web Inspector: console.log/info/warn/etc expect 'error' in a IIFE does not produce output.
Summary: Web Inspector: console.log/info/warn/etc expect 'error' in a IIFE does not pr...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari Technology Preview
Hardware: All OS X 10.11
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-20 10:33 PDT by Kich
Modified: 2016-06-20 13:42 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kich 2016-06-20 10:33:40 PDT
The following code does not produce 'foo' in output:
(function(){console.log('foo'}())
Comment 1 r3nya 2016-06-20 13:42:49 PDT
I think that you mean this code:

(function(){console.log('foo')}())