Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
f285f479
Commit
f285f479
authored
Oct 25, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ES array methods as cause of Phantom.js errors.
parent
2fc359a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
doc/development/frontend.md
doc/development/frontend.md
+8
-3
No files found.
doc/development/frontend.md
View file @
f285f479
...
...
@@ -224,13 +224,18 @@ For our currently-supported browsers, see our [requirements][requirements].
[
scss-style-guide
]:
scss_styleguide.md
[
requirements
]:
../install/requirements.md#supported-web-browsers
##
Common Error
s
##
Gotcha
s
###
Rspec (Capybara/Poltergeist) chokes on general
JavaScript errors
###
Phantom.JS (used by Teaspoon & Rspec) chokes, returning vague
JavaScript errors
If you see very generic JavaScript errors (e.g.
`jQuery is undefined`
) being thrown in tests, but
can't reproduce them manually, you may have included
`ES6`
-style JavaScript in files that don't
have the
`.js.es6`
file extension. Either use ES5-friendly JavaScript or rename the file you're
working in (
`git mv <file>.js> <file.js.es6>`
).
working in (
`git mv <file.js> <file.js.es6>`
).
Similar errors will be thrown if you're using
any of the
[
array methods introduced in ES6
](
http://www.2ality.com/2014/05/es6-array-methods.html
)
whether or not you've updated the file extension.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment