Exploit databaseDownload repository ZIP
GH-7d1d061134d2f84a23cf4a0e171249e3
aabdeldayem1/ftc-2023
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
aabdeldayem1/ftc-2023Revision 7e849a22dcb6
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/build/intermediates/assets/debug/ftcblockly/generators/javascript.js
JavaScript · 1,377 bytes/**
* @license
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview Functions that override Blockly's javascript generator.
* @author lizlooney@google.com (Liz Looney)
*/
Blockly.JavaScript['lists_length'] = function(block) {
var value = Blockly.JavaScript.valueToCode(block, 'VALUE',
Blockly.JavaScript.ORDER_COMMA) || '[]';
var code = 'listLength(' + miscIdentifierForJavaScript + ', ' + value + ')';
return [code, Blockly.JavaScript.ORDER_FUNCTION_CALL];
};
Blockly.JavaScript['lists_isEmpty'] = function(block) {
var value = Blockly.JavaScript.valueToCode(block, 'VALUE',
Blockly.JavaScript.ORDER_COMMA) || '[]';
var code = 'listIsEmpty(' + miscIdentifierForJavaScript + ', ' + value + ')';
return [code, Blockly.JavaScript.ORDER_FUNCTION_CALL];
};