gecko/browser/devtools/debugger/test/code_math.js
Victor Porof a33ccba979 Bug 876277 - Normalize formatting for non-test files and rename them to follow a nicer pattern, r=past
--HG--
rename : browser/devtools/debugger/test/browser_dbg_addon1.xpi => browser/devtools/debugger/test/addon1.xpi
rename : browser/devtools/debugger/test/browser_dbg_addon2.xpi => browser/devtools/debugger/test/addon2.xpi
rename : browser/devtools/debugger/test/binary_search.coffee => browser/devtools/debugger/test/code_binary_search.coffee
rename : browser/devtools/debugger/test/binary_search.js => browser/devtools/debugger/test/code_binary_search.js
rename : browser/devtools/debugger/test/binary_search.map => browser/devtools/debugger/test/code_binary_search.map
rename : browser/devtools/debugger/test/blackboxing_blackboxme.js => browser/devtools/debugger/test/code_blackboxing_blackboxme.js
rename : browser/devtools/debugger/test/blackboxing_one.js => browser/devtools/debugger/test/code_blackboxing_one.js
rename : browser/devtools/debugger/test/blackboxing_three.js => browser/devtools/debugger/test/code_blackboxing_three.js
rename : browser/devtools/debugger/test/blackboxing_two.js => browser/devtools/debugger/test/code_blackboxing_two.js
rename : browser/devtools/debugger/test/test-function-search-01.js => browser/devtools/debugger/test/code_function-search-01.js
rename : browser/devtools/debugger/test/test-function-search-02.js => browser/devtools/debugger/test/code_function-search-02.js
rename : browser/devtools/debugger/test/test-function-search-03.js => browser/devtools/debugger/test/code_function-search-03.js
rename : browser/devtools/debugger/test/test-location-changes-bp.js => browser/devtools/debugger/test/code_location-changes.js
rename : browser/devtools/debugger/test/math.js => browser/devtools/debugger/test/code_math.js
rename : browser/devtools/debugger/test/math.map => browser/devtools/debugger/test/code_math.map
rename : browser/devtools/debugger/test/math.min.js => browser/devtools/debugger/test/code_math.min.js
rename : browser/devtools/debugger/test/test-script-switching-01.js => browser/devtools/debugger/test/code_script-switching-01.js
rename : browser/devtools/debugger/test/test-script-switching-02.js => browser/devtools/debugger/test/code_script-switching-02.js
rename : browser/devtools/debugger/test/test-editor-mode => browser/devtools/debugger/test/code_test-editor-mode
rename : browser/devtools/debugger/test/binary_search.html => browser/devtools/debugger/test/doc_binary_search.html
rename : browser/devtools/debugger/test/browser_dbg_blackboxing.html => browser/devtools/debugger/test/doc_blackboxing.html
rename : browser/devtools/debugger/test/browser_dbg_cmd_break.html => browser/devtools/debugger/test/doc_cmd-break.html
rename : browser/devtools/debugger/test/browser_dbg_cmd.html => browser/devtools/debugger/test/doc_cmd-dbg.html
rename : browser/devtools/debugger/test/browser_dbg_conditional-breakpoints.html => browser/devtools/debugger/test/doc_conditional-breakpoints.html
rename : browser/devtools/debugger/test/browser_dbg_update-editor-mode.html => browser/devtools/debugger/test/doc_editor-mode.html
rename : browser/devtools/debugger/test/browser_dbg_tab1.html => browser/devtools/debugger/test/doc_empty-tab-01.html
rename : browser/devtools/debugger/test/browser_dbg_tab2.html => browser/devtools/debugger/test/doc_empty-tab-02.html
rename : browser/devtools/debugger/test/test-event-listeners.html => browser/devtools/debugger/test/doc_event-listeners.html
rename : browser/devtools/debugger/test/browser_dbg_frame-parameters.html => browser/devtools/debugger/test/doc_frame-parameters.html
rename : browser/devtools/debugger/test/browser_dbg_displayName.html => browser/devtools/debugger/test/doc_function-display-name.html
rename : browser/devtools/debugger/test/browser_dbg_function-search-02.html => browser/devtools/debugger/test/doc_function-search.html
rename : browser/devtools/debugger/test/browser_dbg_iframes.html => browser/devtools/debugger/test/doc_iframes.html
rename : browser/devtools/debugger/test/test-location-changes-bp.html => browser/devtools/debugger/test/doc_included-script.html
rename : browser/devtools/debugger/test/browser_dbg_debuggerstatement.html => browser/devtools/debugger/test/doc_inline-debugger-statement.html
rename : browser/devtools/debugger/test/browser_dbg_breakpoint-new-script.html => browser/devtools/debugger/test/doc_inline-script.html
rename : browser/devtools/debugger/test/browser_dbg_big-data.html => browser/devtools/debugger/test/doc_large-array-buffer.html
rename : browser/devtools/debugger/test/minified.html => browser/devtools/debugger/test/doc_minified.html
rename : browser/devtools/debugger/test/browser_dbg_pause-exceptions.html => browser/devtools/debugger/test/doc_pause-exceptions.html
rename : browser/devtools/debugger/test/browser_dbg_stack.html => browser/devtools/debugger/test/doc_recursion-stack.html
rename : browser/devtools/debugger/test/browser_dbg_script-switching.html => browser/devtools/debugger/test/doc_script-switching-01.html
rename : browser/devtools/debugger/test/browser_dbg_script-switching-02.html => browser/devtools/debugger/test/doc_script-switching-02.html
rename : browser/devtools/debugger/test/test-step-out.html => browser/devtools/debugger/test/doc_step-out.html
rename : browser/devtools/debugger/test/browser_dbg_watch-expressions.html => browser/devtools/debugger/test/doc_watch-expressions.html
rename : browser/devtools/debugger/test/browser_dbg_with-frame.html => browser/devtools/debugger/test/doc_with-frame.html
2013-09-13 16:23:16 +03:00

46 lines
847 B
JavaScript

function add(a, b, k) {
var result = a + b;
return k(result);
}
function sub(a, b, k) {
var result = a - b;
return k(result);
}
function mul(a, b, k) {
var result = a * b;
return k(result);
}
function div(a, b, k) {
var result = a / b;
return k(result);
}
function arithmetic() {
add(4, 4, function (a) {
// 8
sub(a, 2, function (b) {
// 6
mul(b, 3, function (c) {
// 18
div(c, 2, function (d) {
// 9
console.log(d);
});
});
});
});
}
// Compile with closure compiler and the following flags:
//
// --compilation_level WHITESPACE_ONLY
// --source_map_format V3
// --create_source_map code_math.map
// --js_output_file code_math.min.js
//
// And then append the sourceMappingURL comment directive to code_math.min.js
// manually.